<template>
  <div class="fragments">
    <headerWrap></headerWrap>
    <transition name="indexSlide">
      <div class="container-wrap">
        <div class="container-y">
          <div class="switcher-wrap">
            <div @click="switchFlag = 0" class="si"
                 :class="switchFlag == 0?'switcher-active':''">
              在办事宜
            </div>
            <div @click="switchFlag = 1" class="si"
                 :class="switchFlag == 1?'switcher-active':''">
              办结事宜
            </div>
          </div>
          <div class="pull-wrap">
            <div id="pending" class="mescroll" v-show="switchFlag == 0">
              <ul class="data-list-wrap">
                <li class="d-item"
                    v-if="pendingList.length"
                    v-for="item in pendingList"
                    @tap="go_details(item)">
                  <img src="../../img/e01.png" class="i-img">
                  <div class="i-content">
                    <div class="i-title">
                      123
                    </div>
                    <div class="i-time">
                     123
                    </div>
                  </div>
                  <div class="i-state-pend">
                      1123
                  </div>
                </li>
              </ul>
              <noDataWrap v-if="!pendingList.length"></noDataWrap>
            </div>
            <div id="complete" class="mescroll" v-show="switchFlag == 1">
              <ul class="data-list-wrap">
                <li class="d-item"
                    v-if="completeList.length"
                    v-for="item in completeList"
                    @tap="go_details(item)">
                  <img src="../../img/e01.png" class="i-img">
                  <div class="i-content">
                    <div class="i-title">
                      {{item}}
                    </div>
                    <div class="i-time">
                      {{item}}
                    </div>
                  </div>
                  <div class="i-state-pend">
                    {{item}}
                  </div>
                </li>
              </ul>
              <noDataWrap v-if="!completeList.length"></noDataWrap>
            </div>
          </div>
        </div>
      </div>
    </transition>
    <transition name="slideRight">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
  import indexList from "./indexList.js"
  export default indexList
</script>

<style lang="scss">
  @import "indexList";
</style>
